package com.ming.transaction.service;

import com.ming.transaction.common.Result;
import com.ming.transaction.entity.Image;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陈仕健
 * @since 2023-05-04
 */
public interface IImageService extends IService<Image> {

    /**
     * 上传文件
     * @param file
     * @return
     * @throws IOException
     */
    Result uploadImage(MultipartFile file) throws IOException;

    /**
     * 下载文件
     * @param fileUUID
     * @throws IOException
     */
    void dowmloadImage(String fileUUID) throws IOException;
}
